#ifndef VINOUI_H
#define VINOUI_H

#include <QObject>
#include <QWidget>
#include <QRadioButton>
#include <QVBoxLayout>
#include <QLineEdit>
#include <QButtonGroup>
#include <QByteArray>
#include <QDebug>
#include <QGSettings/QGSettings>
#include <QPushButton>
#include "inputpwddialog.h"
#include "titlelabel.h"
#include "kswitchbutton.h"
#include "switchwidget.h"
#include "settinggroup.h"
#include "ukccframe.h"

const QByteArray kVinoSchemas = "org.gnome.Vino";
const QString kVinoViewOnlyKey = "view-only";
const QString kVinoPromptKey = "prompt-enabled";
const QString kAuthenticationKey = "authentication-methods";
const QString kVncPwdKey = "vnc-password";

const QByteArray kUkccVnoSchmas = "org.ukui.control-center.vino";
const QString kUkccPromptKey = "remote";
using namespace kdk;

class VinoUi : public QWidget
{
    Q_OBJECT
public:
    explicit VinoUi(QWidget *parent = nullptr);
    void initUi();
    void setFrameVisible(bool visible);

    SwitchWidget *getEnableWidget() {return mEnableWidget;}
    SwitchWidget *getViewWidget() {return mViewWidget;}
    SwitchWidget *getSecurityWidget() {return mSecurityWidget;}
    SwitchWidget *getSecurityPwdWidget() {return mSecurityPwdWidget;}

    QPushButton *getPwdinputBtn() {return mPwdinputBtn;}

private:
    SwitchWidget *mEnableWidget;
    SwitchWidget *mViewWidget;
    SwitchWidget *mSecurityWidget;
    SwitchWidget *mSecurityPwdWidget;

    TitleLabel *mVinoTitleLabel;

    QPushButton *mPwdinputBtn;
};

#endif // VINOUI_H
